<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    请求范围:<span th:text="${requestScope}"></span><br>
    ---------<span th:text="${#httpServletRequest.getAttribute('requestScope')}"></span><br>

    会话范围：<span th:text="${session.sessionScope}"></span><br>
    上下文范围：<span th:text="${application.contextScope}"></span>
</body>
</html>